<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        body {
            background-color: #ccc;
        }
        @keyframes go {
            0% {

            }
            100% {
                background-position: -1600px 0;
            }
        }
        @keyframes move {
            0% {
                left: 0%;
            }
            100% {
                left: 50%;
                transform: translate(-50%,0);
            }
        }
        .xiong {
            position: absolute;
            margin: 200px 0;
            width: 200px;
            height: 100px;
            background: url(media/bear.png);
            animation: go 0.3s steps(8) infinite,move 3s forwards;
        }
        .banner {
            width: 100%;
            height: 336px;
            background: url(media/bg1.png);
            animation: beijing 9s linear infinite;
        }
        @keyframes beijing {
            0% {

            }
            100% {
                background-position: -3840px 0;
            }
        }
    </style>
</head>
<body>
    <div class="banner">
    <div class="xiong"></div>

    </div>
</body>
</html>